package crp.infra.ipinfo;

import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

@RegisterRestClient(configKey = "infa-ipinfo")
public interface IpInfoRestClient {

    @Path("/{ip}")
    @GET
    IpInfoResponse get(@PathParam("ip") String ip);
}
